import request from '@/utils/request'


export function findAllList(data) {
    return request({
      url: '/scheduled/list',
      method: 'post',
      data
    })
  }


  export function startTaskKey(taskKey) {
    return request({
      url: `/scheduled/start/${taskKey}`,
      method: 'get'
    })
  }

  export function deleteScheduled(id) {
    return request({
      url: `/scheduled/delete/${id}`,
      method: 'delete'
    })
  }

  export function scheduledAddPost(data) {
    return request({
      url: "/scheduled",
      method: 'post',
      data
    })
  }

  export function scheduledUpdatePut(data) {
    return request({
      url: "/scheduled/update",
      method: 'put',
      data
    })
  }

  export function getDetail(id) {
    return request({
      url: `/scheduled/${id}`,
      method: 'get'
    })
  }